package com.oracle.service;

import com.oracle.common.FeignGetGirlServiceFallbackFactory;
import com.oracle.vo.Boy;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "girlmatching",fallbackFactory = FeignGetGirlServiceFallbackFactory.class)
public interface FeignGetGirlService {

    @PostMapping("/Girl/getGirl")
    public List getGirl(@RequestBody Boy boy);

}
